Ext.define('Admin.store.processdefinition.ProcessDefinitionGridStore', {
    extend: 'Ext.data.Store',
    alias: 'store.process-definition-gridstore',//�ı���.ͬʱ��Ϊxtype
    model: 'Admin.model.processdefinition.ProcessDefinitionGridModel',//�ص�
    //pageSize: 25,
    proxy: {
        type: 'ajax',
        url: 'processdefinition/list.json',
        //actionMethods:{read : 'POST'},  
        reader : new Ext.data.JsonReader({  
            type : 'json',  
            rootProperty  : 'content',
            totalProperty : 'totalElements'
        })
        ,simpleSortMode: true
		//,simpleGroupMode: true
        //,groupParam: 'sort'
        //,groupDirectionParam: 'dir' 
    },
    remoteSort: true,
    sorters: [{ property: 'id',direction: 'desc'}],
    autoLoad: true,
    listeners: {
		//beforLoad
    }
});
